FROM openjdk:11

COPY *.jar /app.jar

COPY ./sources.list /etc/apt/sources.list
RUN cat /etc/apt/sources.list
RUN rm -Rf /var/lib/apt/lists/*

RUN apt-get -y update
RUN apt-get -y install vim

CMD ["--server.port=8080"]

EXPOSE 8080

ENTRYPOINT ["java", "-Xms400m", "-Xmx400m", "-XX:NewSize=200m", "-XX:MaxNewSize=200m","-jar", "/app.jar"]